package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.path.IdentityAuthApiCommonDetailParamPath;
import net.yondervision.hrfsp.sdk.esign.domain.response.IdentityAuthApiCommonDetailResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/10/08 14:08
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class IdentityAuthApiCommonDetailRequest extends
    AbstractESignRequest implements
    ESignRequest<IdentityAuthApiCommonDetailResponse> {

  private IdentityAuthApiCommonDetailParamPath identityAuthApiCommonDetailParamPath;

  public IdentityAuthApiCommonDetailRequest(
      IdentityAuthApiCommonDetailParamPath identityAuthApiCommonDetailParamPath) {
    this.identityAuthApiCommonDetailParamPath = identityAuthApiCommonDetailParamPath;
    this.setParamPath(identityAuthApiCommonDetailParamPath);
  }

  @Override
  public String getVersion() {
    return "v2";
  }

  @Override
  public String getUrl() {
    return "/identity/auth/api/common/{flowId}/detail";
  }

  @Override
  public Method getMethodType() {
    return Method.GET;
  }


  @Override
  public Class<IdentityAuthApiCommonDetailResponse> getResponseClass() {
    return IdentityAuthApiCommonDetailResponse.class;
  }

}
